﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QGridLayout>
#include <QStackedWidget>

#include "Window/u_menubar.h"
#include "Window/u_statusbar.h"
#include "Window/u_mainpage.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

    void showEvent(QShowEvent *event);

private:
    void         InitWidget();
    void         SetupConnections();
    void         Initialize();

    MenuBar         *menuBar;
    StatusBar       *statusBar;
    QStackedWidget  *stackedWidget;
    Ui::MainWindow *ui;
};

#endif // MAINWINDOW_H
